import { handleActions } from 'redux-actions'

export default handleActions({
  'fetch onboarding documents': (state, { payload }) => ({
    list: payload.onboardingDocumentVOs
  }),
  'delete onboarding document': (state, { payload }) => ({
    list: list.filter(item => item.documentId != payload)
  })
}, {
  list: []
})
